package com.pinapel.aixml.ui.editors;

import java.awt.BorderLayout;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;

import javax.swing.JEditorPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

import com.pinapel.aixml.graphedit.MainGraphEdition;

/*
 * TO-DO 
 */
public class EditorGraphMode extends JPanel implements FocusListener{
	
	private static final long serialVersionUID = 201204161856L;
	private JEditorPane theText;
	private JScrollPane theScroll;
	
	public EditorGraphMode(){
		this.setLayout(new BorderLayout());
		
		//this.theText = new JEditorPane();
		//this.theScroll = new JScrollPane(theText);
		this.addFocusListener(this);
		this.add(MainGraphEdition.getGeneralPanel());
	}

	@Override
	public void focusGained(FocusEvent arg0) {
		// TODO Auto-generated method stub
		System.out.println("foco");
	}

	@Override
	public void focusLost(FocusEvent arg0) {
		// TODO Auto-generated method stub
		
	}
}
